package ck.springboot.sys.mapper;

import ck.springboot.sys.entity.po.UmsPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 后台用户权限表 Mapper 接口
 * </p>
 *
 * @author lpc
 * @since 2020-07-13
 */
public interface UmsPermissionMapper extends BaseMapper<UmsPermission> {

    /**
     * 获取用户所有权限(包括+-权限)
     */
    List<UmsPermission> getPermissionList(@Param("adminId") Long adminId);

}
